package com.next

class OpportunityContract
{

    Date createdDate = new Date()
    Date modifiedDate = new Date()

    static belongsTo = [opportunity: Opportunity, contract: Contract]

    static constraints = {}

    def beforeUpdate()
    {
        modifiedDate = new Date()
    }
}
